We don’t care about the other enums, fine to squash the warning.
static gboolean
is_mouse_button_press_event (NSEventType type)
{
- switch (type)
+ switch ((int)type)
{
case GDK_QUARTZ_LEFT_MOUSE_DOWN:
case GDK_QUARTZ_RIGHT_MOUSE_DOWN:
state = get_keyboard_modifiers_from_ns_event (nsevent) |
_gdk_quartz_events_get_current_mouse_modifiers ();
- switch ([nsevent type])
+ switch ((int)[nsevent type])
{
case GDK_QUARTZ_LEFT_MOUSE_DOWN:
case GDK_QUARTZ_RIGHT_MOUSE_DOWN: